// 所有和【用户分组】相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http"



// 获取用户分组数据
export const findUserGroupApi = (data?: object) => {
    return httpPost('/userGroup/find', data)
}
// 添加用户分组数据
export const addUserGroupApi = (data: object) => {
    return httpPost('/userGroup/add', data)
}
// 删除用户分组数据
export const deleteUserGroupApi = (data: object) => {
    return httpDelete('/userGroup/remove', data)
}
// 修改用户分组数据
export const updateUserGroupApi = (data: object) => {
    return httpPut('/userGroup/update', data)
}
// 获取一个用户分组数据的详情
export const getUserGroupByIdApi = (data: object) => {
    return httpGet('/userGroup/getById', data)
}